package com.feicheng.service;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.feicheng.entity.SaleOrderHeader;
import com.feicheng.model.SaleOrderHeaderWithUser;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 周启博
 * @since 2022-06-27
 */
public interface ISaleOrderHeaderService extends IService<SaleOrderHeader> {

    /**
     * 销售订单详情页面
     *
     * @param saleId
     * @return
     * @author shuoyu.qian
     */
    SaleOrderHeader saleOrderHeader(@Param(Constants.WRAPPER) Integer saleId);

    /**
     * <p>
     * 多条件分页查询
     * </p>
     *
     * @author 唐俊
     * @since 2022-07-05
     */
     Page<SaleOrderHeaderWithUser> PageConditionSelect(
            Page<SaleOrderHeaderWithUser> saleOrderHeaderPage,
            @Param(Constants.WRAPPER) Wrapper wrapper
    );

}